package thread.consurrent;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.concurrent.*;

/**
 * @program: Multhread
 * @description: 并发容器
 * @author: zhanghz001
 * @create: 2021-03-05 14:42
 **/
public class CurrentDemo {
    public static void main(String[] args) {
        new ArrayList<Integer>();
        new LinkedList<Integer>();
        new HashSet<Integer>();
        new PriorityQueue<Integer>();
        
        //并发容器中的queue
        new ArrayBlockingQueue<Integer>(1);
        new LinkedBlockingQueue<Integer>();
        new PriorityBlockingQueue<Integer>();
        //并发容器的list ArrayList LinkedList
        new CopyOnWriteArrayList<Integer>();
        new ConcurrentLinkedDeque<Integer>();
        //set hashSet,TreeSet
        new CopyOnWriteArraySet<Integer>();
        new ConcurrentSkipListSet<Integer>();
        //map hashMap TreeMap
        new ConcurrentHashMap<String, Integer>();
        new ConcurrentSkipListMap<String, Integer>();
    }
}
